package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.admin.dtos.ChannelDTO;
import com.heima.model.common.dtos.ResponseResult;


public interface AdChannelService extends IService<AdChannel> {
    /**
     *   根据名称，分页查询频道列表
     * @param channelDTO
     * @return
     */
    ResponseResult findByNameAndPage(ChannelDTO channelDTO);

    ResponseResult addChannel(AdChannel adChannel);

    ResponseResult updateChannel(AdChannel adChannel);

    ResponseResult deleteChannel(Integer id);
}
